using EloBuddy.SDK.Menu.Values;
using ExorAIO.Utilities;
using LeagueSharp.SDK;

namespace ExorAIO.Champions.Kalista
{
    /// <summary>
    ///     The menu class.
    /// </summary>
    internal class Menus
    {
        /// <summary>
        ///     Sets the menu.
        /// </summary>
        public static void Initialize()
        {
            /// <summary>
            ///     Sets the menu for the Q Whitelist.
            /// </summary>
            Vars.QMenu = Vars.Menu.AddSubMenu("使用 Q:");
            {
                Vars.QMenu.Add("combo", new CheckBox("Combo", true));
                Vars.QMenu.Add("killsteal", new CheckBox("KillSteal", true));
                Vars.QMenu.Add("harass", new Slider("骚扰 / 如果蓝量 >= x%", 50, 0, 101));
                Vars.QMenu.Add("clear", new Slider("清线 / 如果蓝量 >= x%", 50, 0, 101));

            }

            /// <summary>
            ///     Sets the menu for the W Whitelist.
            /// </summary>
            Vars.WMenu = Vars.Menu.AddSubMenu("使用 W:");
            {
                Vars.WMenu.Add("logical", new Slider("自动 / 如果蓝量 >= x%", 50, 0, 101));
            }

            /// <summary>
            ///     Sets the menu for the E Whitelist.
            /// </summary>
            Vars.EMenu = Vars.Menu.AddSubMenu("使用 E:");
            {
                Vars.EMenu.Add("killsteal", new CheckBox("抢人头", true));
                Vars.EMenu.Add("junglesteal", new CheckBox("抢野", true));
                Vars.EMenu.Add("ondeath", new CheckBox("死亡前", true));
                Vars.EMenu.Add("harass", new Slider("利用小兵 骚扰 / 如果蓝量 >= x%", 50, 0, 101));
                Vars.EMenu.Add("farmhelper", new Slider("补刀助手/ 如果蓝量 >= x%", 50, 0, 101));
                Vars.EMenu.Add("laneclear", new Slider("清线 / 如果蓝量 >= x%", 50, 0, 101));
                {
                    /// <summary>
                    ///     Sets the menu for the E Whitelist.
                    /// </summary>
                    Vars.WhiteListMenu = Vars.Menu.AddSubMenu("利用小兵骚扰: 名单");
                    {
                        foreach (var target in GameObjects.EnemyHeroes)
                        {
                            Vars.WhiteListMenu.Add(target.ChampionName.ToLower(), new CheckBox($"骚扰: {target.ChampionName}", true));
                        }
                    }
                }
            }

            /// <summary>
            ///     Sets the menu for the R Whitelist.
            /// </summary>
            Vars.RMenu = Vars.Menu.AddSubMenu("使用 R:");
            {
                Vars.RMenu.Add("lifesaver", new CheckBox("救队友", true));
            }

            /// <summary>
            ///     Sets the miscellaneous menu.
            /// </summary>
            Vars.MiscMenu = Vars.Menu.AddSubMenu("杂项");
            {
                Vars.MiscMenu.Add("minionsorbwalk", new CheckBox("连招利用小兵来走砍", true));
            }

            /// <summary>
            ///     Sets the drawings menu.
            /// </summary>
            Vars.DrawingsMenu = Vars.Menu.AddSubMenu("线圈");
            {
                Vars.DrawingsMenu.Add("q", new CheckBox("Q 范围"));
                Vars.DrawingsMenu.Add("e", new CheckBox("E 范围"));
                Vars.DrawingsMenu.Add("edmg", new CheckBox("E 伤害", true));
                Vars.DrawingsMenu.Add("r", new CheckBox("R 范围"));
            }
        }
    }
}